import axios from '@/libs/api.request'
import server from '@/libs/server'
const prefix = '/marketing/activity/code'
// 二维码列表
export const getQRcodeLists = data => axios.request({
  url: `${prefix}/batch/list`,
  method: 'post',
  data
})
// 二维码生成
export const saveQRcode = data => server.request({
  url: `${prefix}/batch/create`,
  method: 'post',
  data
})
// 查询二维码生成的号段
export const getQRcodeRange = data => axios.request({
  url: `${prefix}/query/segment`,
  method: 'post',
  data
})
// 查询二维码批次信息
export const getQRcodeInfo = data => axios.request({
  url: `${prefix}/batch/single`,
  method: 'post',
  data
})
